﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace IconYuan.Model.Entity.Orders
{
    [SugarTable("v_order_goods")]
    public class OrderGoodsView
    {
        /// <summary>
        /// 订单id
        /// </summary>
        public int order_id { get; set; }
        /// <summary>
        /// 用户id
        /// </summary>
        public int user_id { get; set; }
        /// <summary>
        /// 商品ID
        /// </summary>
        public int goods_id { get; set; }
        /// <summary>
        /// 商品名称
        /// </summary>
        public string goods_name { get; set; }
        /// <summary>
        /// 商品编码
        /// </summary>
        public string goods_no { get; set; }
        /// <summary>
        /// 商品sku id,格式：100_101
        /// </summary>
        public string goods_sku_id { get; set; }
        /// <summary>
        /// 购买数量
        /// </summary>
        public int buy_count { get; set; }

        /// <summary>
        /// 商品总金额
        /// </summary>
        public decimal goods_price { get; set; }
        /// <summary>
        /// 订单金额(含优惠折扣)
        /// </summary>
        public decimal order_price { get; set; }
        /// <summary>
        /// 实付金额(包含运费)
        /// </summary>
        public decimal pay_price { get; set; }
        /// <summary>
        /// 订单状态(10 已取消, 20 待付款, 30 已付款,40 申请退款,41 申请退款退货 ,50 同意退款,60 拒绝退款, 70 已完成)
        /// </summary>
        public int order_status { get; set; } = 0;
        /// <summary>
        /// 订单模型: 1 商品订单, 2 升级订单, 3 兑换订单 
        /// </summary>
        public int jump { get; set; } = 1;
        /// <summary>
        /// 门店id
        /// </summary>
        public int shop_id { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime create_time { get; set; }
        /// <summary>
        /// 付款时间
        /// </summary>
        public DateTime pay_time { get; set; }
    }
}
